package com.scf.loanmanage.service.ServiceImp;

import com.scf.loanmanage.dao.OverDueCollectionMapper;
import com.scf.loanmanage.entity.OverDueCollection;
import com.scf.loanmanage.service.OverDueCollectionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OverDueCollectionImpl implements OverDueCollectionService {
    @Resource
    OverDueCollectionMapper overDueCollectionMapper;

    @Override
    public List<OverDueCollection> selectAll(Integer pageIndex, Integer pageSize) {
        return overDueCollectionMapper.selectAll(pageIndex, pageSize);
    }

    @Override
    public Integer selectcount() {
        return overDueCollectionMapper.selectcount();
    }

    @Override
    public List<OverDueCollection> selectByname(String enterprisename, String code) {
        return overDueCollectionMapper.selectByname(enterprisename, code);
    }

    @Override
    public void upadte(Integer oid,Integer count) {
        overDueCollectionMapper.upadte(oid,count);
    }

    @Override
    public OverDueCollection selctByid(Integer oid) {
        return overDueCollectionMapper.selctByid(oid);
    }
}
